package com.example.administrator.teainfo.Bean;

/**
 * Created by Administrator on 2016/12/10.
 */

public class URLResouce {
    private static final String BASE_URL = "http://sns.maimaicha.com/api?apikey=b4f4ee31a8b9acc866ef2afb754c33e6&format=json&method=";
    // 频道类型
    public static final int TYPE_ENCYCLOPEDIA = 16;// 百科
    public static final int TYPE_INFOMATION = 52;// 资讯
    public static final int TYPE_MANAGEMENT = 53;// 经营
    public static final int TYPE_DATA = 54;// 数据
    // 频道接口
    public static final String CHANNEL_URL = BASE_URL + "news.getListByType&row=15&type=";
    // 分页
    public static final String PAGE = "&page=";
    //首页幻灯片数据路径
    public static final String HOME_URL = BASE_URL + "news.getSlideshow";
    //内容详情页，id为对应文章id，主界面Json数据中获取
    public static final String DETAIL_URL = BASE_URL + "news.getNewsContent&id=";
    //搜索
    public static final String SEARCHPATH = BASE_URL + "news.searcListByTitle&rows=10&page=1&search=tea";
    //头条数据
    public static final String HEADLINE_URL = BASE_URL + "news.getHeadlines";
}
